package JavaCore;

public class Myclass5 {
	int a,b,c;
	int tot;
	
	public void hap(){
		System.out.println(tot);
	}
	
	public Myclass5(int a,int b,int c){
		
		this.a=a;
		this.b=b;
		this.c=c;
		
		this.tot=a+b+c;
		
	}
	
	
	public static void main(String[] args){
		Myclass5 m5 = new Myclass5(10,20,30);
		m5.hap();
	}

}
